Class WebmasterTools::SitemapsController
In: lib/webmaster_tools/sitemaps.rb
Parent: ActionController::Base

A custom controller that we‘ll use for setting up the sitemap

Methods

index   model  

Public Instance methods

An index file that links to all of the other sitemaps

[Source]

     # File lib/webmaster_tools/sitemaps.rb, line 118
118:     def index
119:       render :xml => WebmasterTools::Sitemaps.all_sitemaps.to_sitemap_index(options)
120:     end

This method handles all calls to the active record sitemaps

[Source]

     # File lib/webmaster_tools/sitemaps.rb, line 123
123:     def model
124:       render :xml => params[:model].classify.constantize.sitemap.to_sitemap(options)
125:     end

[Validate]